<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateInfoNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('info_news', function (Blueprint $table) {
            $table->unsignedInteger('info_id')->default('0')->primary()->comment('信息表ID');
            $table->string('source', 100)->default('')->comment('来源');
            $table->string('author', 100)->default('')->comment('作者');
            $table->text('content')->nullable()->comment('内容');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('info_news');
    }
}
